<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<div id="response_message">
	<article class="new-msg">
		<form action="msg?action=save" method="post" id="msg_form">
			<input value="${type}" name="type" id="type" type="hidden"> <input
				value="${pid}" name="pid" id="pid" type="hidden"> <input
				value="${articleId}" name="articleId" id="articleId" type="hidden">
			<input value="" name="returnUrl" id="returnUrl" type="hidden">
			<p>
				<input value="${currentUser.nickname}" placeholder="姓名"
					<c:if test="${not empty currentUser}">type="hidden"</c:if>
					name=nickname id="nickname" type="text" require>
			</p>
			<p>
				<input value="${currentUser.email}" placeholder="邮箱"
					<c:if test="${not empty currentUser}">type="hidden"</c:if>
					name="email" id="email" type="email" require>
			</p>
			<p>
				<input value="${currentUser.website}" placeholder="http:// "
					<c:if test="${not empty currentUser}">type="hidden"</c:if>
					name="website" type="url">
			</p>

			<textarea name="content" rows="4" placeholder="大雁从天空飞过，怎能不留下痕迹？"
				require></textarea>
			<div class="clearfix">
				<span style="color: #777777;">您也可以通过姓名和邮箱</span><a
					style="cursor: pointer; color: #5895BE;" href="login.jsp">登录</a><span
					style="color: #777777;">，快速发布评论</span> <input type="submit"
					id="msg_submit" value="发布评论" />
			</div>
			<div align="center" class="error">${error}</div>
		</form>
	</article>
</div>
